-- GENERATED SPELL FOR [Wildhammer Scout] --


function spell0_19384(pUnit, Event) --@Throw Hammer,n/a--
pUnit:FullCastSpellOnTarget(33805,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19384', 2000, 1)
end

function spell1_19384(pUnit, Event) --@Throw Hammer,n/a--
pUnit:FullCastSpellOnTarget(33806,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19384', 2000, 1)
end

function Sorts_19384(pUnit, Event)
local choix_sorts_19384 = math.random(0, 1)
if choix_sorts_19384 == 0 then
pUnit:RegisterEvent('spell0_19384', 1, 1)
end
if choix_sorts_19384 == 1 then
pUnit:RegisterEvent('spell1_19384', 1, 1)
end
end

function mob19384_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19384', math.random(1500, 3000), 1)
end

function mob19384_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19384_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19384_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19384, 1, 'mob19384_Action')
RegisterUnitEvent(19384, 2, 'mob19384_Leave')
RegisterUnitEvent(19384, 3, 'mob19384_Kill')
RegisterUnitEvent(19384, 4, 'mob19384_Die')
